package com.dilidili.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;

/**
 * @PackgeName: com.jab.config
 * @ClassName: ResourceServerConfig
 * @Author: 零
 * Date: 2022/3/24 22:04
 * project name: SpringCloud-Exercise
 * @Version: 资源服务器配置
 * @Description:
 */
/*@Configuration
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true)*/
public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
  /*  @Override
    public void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests().antMatchers("/t").permitAll().anyRequest().authenticated()
                .and().csrf().disable()
                .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
    }*/
}
